3.232 \(\int \cos ^3(e+f x) \sqrt{a+b \sec ^2(e+f x)} \, dx\)

Optimal. Leaf size=246 \[ -\frac{b (a+b) \sqrt{\cos ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}} \sqrt{\sec ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right )} \text{EllipticF}\left (\sin ^{-1}(\sin (e+f x)),\frac{a}{a+b}\right )}{3 a f \left (-a \sin ^2(e+f x)+a+b\right )}+\frac{\sin (e+f x) \cos ^2(e+f x) \sqrt{\sec ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right )}}{3 f}+\frac{(2 a+b) \sqrt{\cos ^2(e+f x)} \sqrt{\sec ^2(e+f x) \left (-a \sin ^2(e+f x)+a+b\right )} E\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right )}{3 a f \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}} \]

[Out]

(Cos[e + f*x]^2*Sin[e + f*x]*Sqrt[Sec[e + f*x]^2*(a + b - a*Sin[e + f*x]^2)])/(3*f) + ((2*a + b)*Sqrt[Cos[e +
f*x]^2]*EllipticE[ArcSin[Sin[e + f*x]], a/(a + b)]*Sqrt[Sec[e + f*x]^2*(a + b - a*Sin[e + f*x]^2)])/(3*a*f*Sqr
t[1 - (a*Sin[e + f*x]^2)/(a + b)]) - (b*(a + b)*Sqrt[Cos[e + f*x]^2]*EllipticF[ArcSin[Sin[e + f*x]], a/(a + b)
]*Sqrt[Sec[e + f*x]^2*(a + b - a*Sin[e + f*x]^2)]*Sqrt[1 - (a*Sin[e + f*x]^2)/(a + b)])/(3*a*f*(a + b - a*Sin[
e + f*x]^2))

________________________________________________________________________________________

Rubi [A]  time = 0.389358, antiderivative size = 299, normalized size of antiderivative = 1.22, number of steps used = 9, number of rules used = 9, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.36, Rules used = {4148, 6722, 1974, 417, 524, 426, 424, 421, 419} \[ \frac{\sin (e+f x) \cos ^2(e+f x) \sqrt{-a \sin ^2(e+f x)+a+b} \sqrt{a+b \sec ^2(e+f x)}}{3 f \sqrt{a \cos ^2(e+f x)+b}}-\frac{b (a+b) \sqrt{\cos ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}} \sqrt{a+b \sec ^2(e+f x)} F\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right )}{3 a f \sqrt{-a \sin ^2(e+f x)+a+b} \sqrt{a \cos ^2(e+f x)+b}}+\frac{(2 a+b) \sqrt{\cos ^2(e+f x)} \sqrt{-a \sin ^2(e+f x)+a+b} \sqrt{a+b \sec ^2(e+f x)} E\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right )}{3 a f \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}} \sqrt{a \cos ^2(e+f x)+b}} \]

Antiderivative was successfully verified.

[In]

Int[Cos[e + f*x]^3*Sqrt[a + b*Sec[e + f*x]^2],x]

[Out]

(Cos[e + f*x]^2*Sqrt[a + b*Sec[e + f*x]^2]*Sin[e + f*x]*Sqrt[a + b - a*Sin[e + f*x]^2])/(3*f*Sqrt[b + a*Cos[e
+ f*x]^2]) + ((2*a + b)*Sqrt[Cos[e + f*x]^2]*EllipticE[ArcSin[Sin[e + f*x]], a/(a + b)]*Sqrt[a + b*Sec[e + f*x
]^2]*Sqrt[a + b - a*Sin[e + f*x]^2])/(3*a*f*Sqrt[b + a*Cos[e + f*x]^2]*Sqrt[1 - (a*Sin[e + f*x]^2)/(a + b)]) -
 (b*(a + b)*Sqrt[Cos[e + f*x]^2]*EllipticF[ArcSin[Sin[e + f*x]], a/(a + b)]*Sqrt[a + b*Sec[e + f*x]^2]*Sqrt[1
- (a*Sin[e + f*x]^2)/(a + b)])/(3*a*f*Sqrt[b + a*Cos[e + f*x]^2]*Sqrt[a + b - a*Sin[e + f*x]^2])

Rule 4148

Int[sec[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*sec[(e_.) + (f_.)*(x_)]^(n_))^(p_), x_Symbol] :> With[{ff = Fr
eeFactors[Sin[e + f*x], x]}, Dist[ff/f, Subst[Int[(a + b/(1 - ff^2*x^2)^(n/2))^p/(1 - ff^2*x^2)^((m + 1)/2), x
], x, Sin[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f, p}, x] && IntegerQ[(m - 1)/2] && IntegerQ[n/2] &&  !IntegerQ
[p]

Rule 6722

Int[(u_.)*((a_.) + (b_.)*(v_)^(n_))^(p_), x_Symbol] :> Dist[(a + b*v^n)^FracPart[p]/(v^(n*FracPart[p])*(b + a/
v^n)^FracPart[p]), Int[u*v^(n*p)*(b + a/v^n)^p, x], x] /; FreeQ[{a, b, p}, x] &&  !IntegerQ[p] && ILtQ[n, 0] &
& BinomialQ[v, x] &&  !LinearQ[v, x]

Rule 1974

Int[(u_)^(p_.)*(v_)^(q_.), x_Symbol] :> Int[ExpandToSum[u, x]^p*ExpandToSum[v, x]^q, x] /; FreeQ[{p, q}, x] &&
 BinomialQ[{u, v}, x] && EqQ[BinomialDegree[u, x] - BinomialDegree[v, x], 0] &&  !BinomialMatchQ[{u, v}, x]

Rule 417

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(x*(a + b*x^n)^p*(c + d*x^n
)^q)/(n*(p + q) + 1), x] + Dist[n/(n*(p + q) + 1), Int[(a + b*x^n)^(p - 1)*(c + d*x^n)^(q - 1)*Simp[a*c*(p + q
) + (q*(b*c - a*d) + a*d*(p + q))*x^n, x], x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && GtQ[q,
0] && GtQ[p, 0] && IntBinomialQ[a, b, c, d, n, p, q, x]

Rule 524

Int[((e_) + (f_.)*(x_)^(n_))/(Sqrt[(a_) + (b_.)*(x_)^(n_)]*Sqrt[(c_) + (d_.)*(x_)^(n_)]), x_Symbol] :> Dist[f/
b, Int[Sqrt[a + b*x^n]/Sqrt[c + d*x^n], x], x] + Dist[(b*e - a*f)/b, Int[1/(Sqrt[a + b*x^n]*Sqrt[c + d*x^n]),
x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] &&  !(EqQ[n, 2] && ((PosQ[b/a] && PosQ[d/c]) || (NegQ[b/a] && (PosQ[
d/c] || (GtQ[a, 0] && ( !GtQ[c, 0] || SimplerSqrtQ[-(b/a), -(d/c)]))))))

Rule 426

Int[Sqrt[(a_) + (b_.)*(x_)^2]/Sqrt[(c_) + (d_.)*(x_)^2], x_Symbol] :> Dist[Sqrt[a + b*x^2]/Sqrt[1 + (b*x^2)/a]
, Int[Sqrt[1 + (b*x^2)/a]/Sqrt[c + d*x^2], x], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] &&  !GtQ
[a, 0]

Rule 424

Int[Sqrt[(a_) + (b_.)*(x_)^2]/Sqrt[(c_) + (d_.)*(x_)^2], x_Symbol] :> Simp[(Sqrt[a]*EllipticE[ArcSin[Rt[-(d/c)
, 2]*x], (b*c)/(a*d)])/(Sqrt[c]*Rt[-(d/c), 2]), x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[
a, 0]

Rule 421

Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_)^2]), x_Symbol] :> Dist[Sqrt[1 + (d*x^2)/c]/Sqrt[c + d*
x^2], Int[1/(Sqrt[a + b*x^2]*Sqrt[1 + (d*x^2)/c]), x], x] /; FreeQ[{a, b, c, d}, x] &&  !GtQ[c, 0]

Rule 419

Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_)^2]), x_Symbol] :> Simp[(1*EllipticF[ArcSin[Rt[-(d/c),
2]*x], (b*c)/(a*d)])/(Sqrt[a]*Sqrt[c]*Rt[-(d/c), 2]), x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] &
& GtQ[a, 0] &&  !(NegQ[b/a] && SimplerSqrtQ[-(b/a), -(d/c)])

Rubi steps

\begin{align*} \int \cos ^3(e+f x) \sqrt{a+b \sec ^2(e+f x)} \, dx &=\frac{\operatorname{Subst}\left (\int \left (1-x^2\right ) \sqrt{a+\frac{b}{1-x^2}} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\left (\sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \sqrt{1-x^2} \sqrt{b+a \left (1-x^2\right )} \, dx,x,\sin (e+f x)\right )}{f \sqrt{b+a \cos ^2(e+f x)}}\\ &=\frac{\left (\sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \sqrt{1-x^2} \sqrt{a+b-a x^2} \, dx,x,\sin (e+f x)\right )}{f \sqrt{b+a \cos ^2(e+f x)}}\\ &=\frac{\cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \sqrt{a+b-a \sin ^2(e+f x)}}{3 f \sqrt{b+a \cos ^2(e+f x)}}+\frac{\left (2 \sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \frac{a+b+\frac{1}{2} (-2 a-b) x^2}{\sqrt{1-x^2} \sqrt{a+b-a x^2}} \, dx,x,\sin (e+f x)\right )}{3 f \sqrt{b+a \cos ^2(e+f x)}}\\ &=\frac{\cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \sqrt{a+b-a \sin ^2(e+f x)}}{3 f \sqrt{b+a \cos ^2(e+f x)}}-\frac{\left ((-2 a-b) \sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{a+b-a x^2}}{\sqrt{1-x^2}} \, dx,x,\sin (e+f x)\right )}{3 a f \sqrt{b+a \cos ^2(e+f x)}}-\frac{\left (b (a+b) \sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-x^2} \sqrt{a+b-a x^2}} \, dx,x,\sin (e+f x)\right )}{3 a f \sqrt{b+a \cos ^2(e+f x)}}\\ &=\frac{\cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \sqrt{a+b-a \sin ^2(e+f x)}}{3 f \sqrt{b+a \cos ^2(e+f x)}}-\frac{\left ((-2 a-b) \sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)} \sqrt{a+b-a \sin ^2(e+f x)}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{1-\frac{a x^2}{a+b}}}{\sqrt{1-x^2}} \, dx,x,\sin (e+f x)\right )}{3 a f \sqrt{b+a \cos ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}}-\frac{\left (b (a+b) \sqrt{\cos ^2(e+f x)} \sqrt{a+b \sec ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{1-x^2} \sqrt{1-\frac{a x^2}{a+b}}} \, dx,x,\sin (e+f x)\right )}{3 a f \sqrt{b+a \cos ^2(e+f x)} \sqrt{a+b-a \sin ^2(e+f x)}}\\ &=\frac{\cos ^2(e+f x) \sqrt{a+b \sec ^2(e+f x)} \sin (e+f x) \sqrt{a+b-a \sin ^2(e+f x)}}{3 f \sqrt{b+a \cos ^2(e+f x)}}+\frac{(2 a+b) \sqrt{\cos ^2(e+f x)} E\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right ) \sqrt{a+b \sec ^2(e+f x)} \sqrt{a+b-a \sin ^2(e+f x)}}{3 a f \sqrt{b+a \cos ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}}-\frac{b (a+b) \sqrt{\cos ^2(e+f x)} F\left (\sin ^{-1}(\sin (e+f x))|\frac{a}{a+b}\right ) \sqrt{a+b \sec ^2(e+f x)} \sqrt{1-\frac{a \sin ^2(e+f x)}{a+b}}}{3 a f \sqrt{b+a \cos ^2(e+f x)} \sqrt{a+b-a \sin ^2(e+f x)}}\\ \end{align*}

Mathematica [C]  time = 8.52001, size = 539, normalized size = 2.19 \[ \frac{\cos (e+f x) \sqrt{a+b \sec ^2(e+f x)} \left (\frac{(2 a+2 b) \sqrt{\frac{a \cos (2 e+2 f x)+a+2 b}{2 a+2 b}} E\left (\frac{1}{2} (2 e+2 f x)|\frac{2 a}{2 a+2 b}\right )}{f \sqrt{a \cos (2 e+2 f x)+a+2 b}}+\frac{\sin (2 e+2 f x) \cos (2 (e+f x)) \sec \left (2 \left (\frac{1}{2} \left (\cos ^{-1}(\cos (2 e+2 f x))-2 e\right )+e\right )\right ) \left (-i a b \sqrt{\frac{-2 (a \cos (2 e+2 f x)+a+2 b)+4 a+4 b}{a+b}} \sqrt{2-\frac{a \cos (2 e+2 f x)+a+2 b}{b}} \text{EllipticF}\left (i \sinh ^{-1}\left (\frac{\sqrt{-\frac{1}{a+b}} \sqrt{a \cos (2 e+2 f x)+a+2 b}}{\sqrt{2}}\right ),\frac{a+b}{b}\right )-\sqrt{-\frac{1}{a+b}} (a \cos (2 e+2 f x)-a) (a \cos (2 e+2 f x)+a) \sqrt{a \cos (2 e+2 f x)+a+2 b}-i b (a+2 b) \sqrt{\frac{a-a \cos (2 e+2 f x)}{a+b}} \sqrt{4-\frac{2 (a \cos (2 e+2 f x)+a+2 b)}{b}} E\left (i \sinh ^{-1}\left (\frac{\sqrt{-\frac{1}{a+b}} \sqrt{\cos (2 e+2 f x) a+a+2 b}}{\sqrt{2}}\right )|\frac{a+b}{b}\right )\right )}{3 a^2 f \sqrt{-\frac{1}{a+b}} \sqrt{1-\cos ^2(2 e+2 f x)} \sqrt{\frac{(a-a \cos (2 e+2 f x)) (a \cos (2 e+2 f x)+a)}{a^2}}}\right )}{2 \sqrt{a \cos (2 e+2 f x)+a+2 b}} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[e + f*x]^3*Sqrt[a + b*Sec[e + f*x]^2],x]

[Out]

(Cos[e + f*x]*Sqrt[a + b*Sec[e + f*x]^2]*(((2*a + 2*b)*Sqrt[(a + 2*b + a*Cos[2*e + 2*f*x])/(2*a + 2*b)]*Ellipt
icE[(2*e + 2*f*x)/2, (2*a)/(2*a + 2*b)])/(f*Sqrt[a + 2*b + a*Cos[2*e + 2*f*x]]) + (Cos[2*(e + f*x)]*(-(Sqrt[-(
a + b)^(-1)]*(-a + a*Cos[2*e + 2*f*x])*(a + a*Cos[2*e + 2*f*x])*Sqrt[a + 2*b + a*Cos[2*e + 2*f*x]]) - I*b*(a +
 2*b)*Sqrt[(a - a*Cos[2*e + 2*f*x])/(a + b)]*Sqrt[4 - (2*(a + 2*b + a*Cos[2*e + 2*f*x]))/b]*EllipticE[I*ArcSin
h[(Sqrt[-(a + b)^(-1)]*Sqrt[a + 2*b + a*Cos[2*e + 2*f*x]])/Sqrt[2]], (a + b)/b] - I*a*b*Sqrt[(4*a + 4*b - 2*(a
 + 2*b + a*Cos[2*e + 2*f*x]))/(a + b)]*Sqrt[2 - (a + 2*b + a*Cos[2*e + 2*f*x])/b]*EllipticF[I*ArcSinh[(Sqrt[-(
a + b)^(-1)]*Sqrt[a + 2*b + a*Cos[2*e + 2*f*x]])/Sqrt[2]], (a + b)/b])*Sec[2*(e + (-2*e + ArcCos[Cos[2*e + 2*f
*x]])/2)]*Sin[2*e + 2*f*x])/(3*a^2*Sqrt[-(a + b)^(-1)]*f*Sqrt[((a - a*Cos[2*e + 2*f*x])*(a + a*Cos[2*e + 2*f*x
]))/a^2]*Sqrt[1 - Cos[2*e + 2*f*x]^2])))/(2*Sqrt[a + 2*b + a*Cos[2*e + 2*f*x]])

________________________________________________________________________________________

Maple [C]  time = 0.721, size = 4623, normalized size = 18.8 \begin{align*} \text{output too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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2)*b^(3/2)-a^2+6*a*b
-b^2)/(a+b)^2)^(1/2))*b^3-5*2^(1/2)*(1/(a+b)*(I*cos(f*x+e)*a^(1/2)*b^(1/2)-I*a^(1/2)*b^(1/2)+a*cos(f*x+e)+b)/(
1+cos(f*x+e)))^(1/2)*(-2/(a+b)*(I*cos(f*x+e)*a^(1/2)*b^(1/2)-I*a^(1/2)*b^(1/2)-a*cos(f*x+e)-b)/(1+cos(f*x+e)))
^(1/2)*EllipticE((-1+cos(f*x+e))*((2*I*a^(1/2)*b^(1/2)+a-b)/(a+b))^(1/2)/sin(f*x+e),(-(4*I*a^(3/2)*b^(1/2)-4*I
*a^(1/2)*b^(3/2)-a^2+6*a*b-b^2)/(a+b)^2)^(1/2))*a^2*b*sin(f*x+e)-4*sin(f*x+e)*2^(1/2)*(1/(a+b)*(I*cos(f*x+e)*a
^(1/2)*b^(1/2)-I*a^(1/2)*b^(1/2)+a*cos(f*x+e)+b)/(1+cos(f*x+e)))^(1/2)*(-2/(a+b)*(I*cos(f*x+e)*a^(1/2)*b^(1/2)
-I*a^(1/2)*b^(1/2)-a*cos(f*x+e)-b)/(1+cos(f*x+e)))^(1/2)*EllipticE((-1+cos(f*x+e))*((2*I*a^(1/2)*b^(1/2)+a-b)/
(a+b))^(1/2)/sin(f*x+e),(-(4*I*a^(3/2)*b^(1/2)-4*I*a^(1/2)*b^(3/2)-a^2+6*a*b-b^2)/(a+b)^2)^(1/2))*a*b^2)*cos(f
*x+e)*((b+a*cos(f*x+e)^2)/cos(f*x+e)^2)^(1/2)/(b+a*cos(f*x+e)^2)/sin(f*x+e)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right )^{2} + a} \cos \left (f x + e\right )^{3}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^3*(a+b*sec(f*x+e)^2)^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(b*sec(f*x + e)^2 + a)*cos(f*x + e)^3, x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\sqrt{b \sec \left (f x + e\right )^{2} + a} \cos \left (f x + e\right )^{3}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^3*(a+b*sec(f*x+e)^2)^(1/2),x, algorithm="fricas")

[Out]

integral(sqrt(b*sec(f*x + e)^2 + a)*cos(f*x + e)^3, x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)**3*(a+b*sec(f*x+e)**2)**(1/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right )^{2} + a} \cos \left (f x + e\right )^{3}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)^3*(a+b*sec(f*x+e)^2)^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(b*sec(f*x + e)^2 + a)*cos(f*x + e)^3, x)